@(tipi: List[Categoria], categoriaForm: play.data.Form[Categoria],id: Long,daModificare: Categoria,warning: Boolean)

@import helper._

@main("Categoria") {
	<table>
	<td>
		@form(routes.Categorie.categorie()) {
   			<button type="submit" class="btn btn-info btn-large"><i class="icon-arrow-left"></i> Categorie</button>
   	}
	</td>
	<td>
    	<p style="-webkit-text-stroke: #000000 1px; font-size: 39px; color:#3ADF00">Modifica Categoria</p>
   	</td>
   	</table>
   	@if(warning==true){
    	<div class="alert">
  			<button type="button" class="close" data-dismiss="alert">&times;</button>
  			<strong>Attenzione!</strong> Classifica già esistente!
		</div><h2>Nuova Categoria</h2>
    }
   	
   	
    <div style="background: rgba(100,100,50,0.3);">
    	<form action="@routes.Categorie.editCategoria(id)" method="GET" class="form-horizontal" >
    	
    		<br>
    	
    		<dl class=" error" id="denominazione_field">
    		<label class="control-label" for="inputDenominazione">Denominazione*</label>
 			<div class="control-group info">
    			<div class="controls">
    				<textarea id="denominazione" name="denominazione" rows="4" cols="50" placeholder="ad es. Dighe Bucate 2000" title="Max 510 caratteri">@daModificare.denominazione</textarea>
    			</div>
  			</div>
  			</dl>
  			
  			<dl class=" error" id="categoria_field">
    		<label class="control-label" for="inputCategoria">Categoria*</label>
 			<div class="control-group info">
    			<div class="controls">
      				<input type="text" id="categoria" name="categoria" value="@daModificare.categoria" placeholder="ad es. GS001" title="Max 16 caratteri">
    			</div>
  			</div>
  			</dl>
  			
  			<div class="controls">
       			<button type="submit" class="btn btn-primary">Modifica</button> &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;*Campo obbligatorio
       		</div>
       		
       		<br>
    	</form>
    </div>
 
}